Batch file to C file (BAT2C.EXE) verision 2.1 BY:Kevin Lewis CHANGES: -------- Changes from 2.0 are minor bug fixes, with the program also because of my mistake now only $3.00 to register! I. The motive: I made this convertor, because one day on the FX-NET, I read message, that someone was asking for a Batch to C convertor. No one had heard of one, so I logged off the BBS and started work. I would like to thank Doug Ricket for the extensive help with some programming commands. II. Usage: To use the batch convertor, simple type the name of the batch file. EXAMPLE: BAT2C hello.bat hello.c sample listing for HELLO.BAT echo hello The output of the file would be in hello.c. listing for hello.c: /*converted with Kingshore Software's BAT2C ver 2.1 */ #include #include main() { printf("HELLO\n"); } Only stdio.h and conio.h are included in the conversion all other header files that need to be included must be typed in by you. Commands that the convertor doesn't recognize, will just simply not be converted. III. Understood commands: REM - a statement that is used as a commentor. ECHO - prints the following text on the screen. CLS - clears the screen. pause - waits for a key to be pressed. goto - goes to the following identifier. : - the identifier used by goto or as comment. A.DOS commands -------------- COPY : DEL CD\ IV. Version 3.0 More functions will be in version 3.0 ------------------------------------- FOR statement IF statement CHOICE statement V. Questions ------------ Please relay all questions to: +---------------------------+----------------------+ | Dante's Inferno | +1 +408 446-4992 | file sight TECH SUPPORT +---------------------------+----------------------+ Internet: kshore1@aol.com VI. Registration ---------------- Registration is $3.00 it allows all file sizes and you get FREE upgrades. (you must send your own disk, for upgrades, however you will be notified) It is good to register version 2.1, because as the versions be come larger so do the registration fees. Send Check or Money order & form to: Kingshore Software 13899 Malcom ave Saratoga,CA 95070 CUT-----------CUT--------CUT--------CUT-------CUT------CUT--------CUT-----CUT REGISTRATION FORM FOR BAT2C.EXE FEE IS $3.00 NO CASH EXCEPTED! NAME:___________________________________________ ADRESS:_________________________________________ ________________________________________________ ________________________________________________ COMPANY NAME:___________________________________ DISK SIZE: 3.5 [ ] 5.25 [ ] COMMENTS:_______________________________________ ________________________________________________ ________________________________________________ Kingshore Software Assuums NO responsability what so ever if you use this program. It doesn't cause any problems that I know of. Any damage to Software or hardware is strictly your problem. Please do report any damages to us so that we may correct the problem.